package com.bristua.barcode.supplier.biz;

import com.bristua.barcode.supplier.dao.TQrCodeMapper;
import com.bristua.barcode.supplier.model.TQrCode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/8/6 0006.
 */
@Service
@Transactional
public class DisableEnablationSupplierQRCodeBiz {

    @Resource
    private TQrCodeMapper tQrCodeMapper;

    public void disableEnablationSupplierQRCode(String qrCodeId,Integer status){
        TQrCode tQrCode = new TQrCode();
        tQrCode.setStatus(status);
        tQrCode.setQrCodeId(qrCodeId);
        tQrCodeMapper.updateByPrimaryKeySelective(tQrCode);
    }
}
